package com.chenyue.cm.news.domain;

import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * VIEW
 * </p>
 *
 * @author Lbx
 * @since 2021-11-25
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="NewsInfo对象", description="VIEW")
public class NewsInfo extends Model<NewsInfo> {

    private static final long serialVersionUID = 1L;

    private Integer id;

    @ApiModelProperty(value = "新闻标题")
    private String title;

    @ApiModelProperty(value = "新闻内容")
    private String content;

    @ApiModelProperty(value = "发布人")
    private Integer cu;

    @ApiModelProperty(value = "发布时间")
    @TableField(fill = FieldFill.INSERT)
    private Date ct;

    @ApiModelProperty(value = "是否展示 0隐藏1展示")
    private Integer isShow;

    @ApiModelProperty(value = "封面图")
    private String cover;

    @ApiModelProperty(value = "展示方式 1大图 2小图")
    private Integer showType;

    @ApiModelProperty(value = "是否推荐0不推荐1推荐")
    private Integer isRecommend;

    private Long viewNum;

    private Long commentNum;

    private Long collectNum;


    @Override
    protected Serializable pkVal() {
        return null;
    }

}
